package com.jiemengshi.server.mapper;

import com.jiemengshi.server.model.Link;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
@Transactional
public interface LinkMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Link record);

    int insertSelective(Link record);

    Link selectByPrimaryKey(Integer id);

    List<Link> selectByIdRange(@Param("low") Integer low, @Param("high") Integer high);
    
    int updateByPrimaryKeySelective(Link record);

    int updateByPrimaryKey(Link record);
}